package cn.edu.nyist.mapper;

import cn.edu.nyist.entity.CommonUser;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

/**
 * (CommonUser)表数据库访问层
 *
 * @author makejava
 * @since 2021-03-21 17:40:56
 */
public interface CommonUserMapper {


    CommonUser login(String username, String password);

    List<CommonUser> queryList(Map<String, Object> paramMap);

    Integer queryCount(Map<String, Object> paramMap);

    int insertCommonUser(CommonUser user);

    CommonUser selectById(Integer id);

    int delByCommonUserIds(List<Integer> ids);

    int editByCommonUser(CommonUser user);

    CommonUser selectByName(String username);

    CommonUser selectByEmail(String email);

    CommonUser selectByPhone(String phone);

    CommonUser selectBySex(String sex);


}